#ifndef __STRING_H_
#define __STRING_H_

#define to_str(x) __val(x)
#define __val(x) #x

#define is_digit(c)	((c) >= '0' && (c) <= '9')

#define is_visible(c) ((c) > 0x1F && (c) < 0x7F)

//len of string
int strlen(char* str);

//a is equal to b?
int strcmp(char* s1, char* s2);

char* itoa(long xx, char* str, int base, int sign);

void* memset(void* ptr, char v, int n);

void* memcpy(void* dst, const void* src, int n);

char* strcpy(char* dst, const char* src);

char* strncpy(char* dst, const char* src, int len);

void strrtrim(char* str);

#endif